﻿#ifndef EXCELIMPORTTHREAD_H
#define EXCELIMPORTTHREAD_H

#include <QThread>
#include "excelbase.h"

class ExcelImportThread : public QThread
{
    Q_OBJECT
public:
    explicit ExcelImportThread(QObject *parent = nullptr);

    void setFileName(QString fileName);

    void importData();

protected:
    void run();

signals:
    //从Excel导入数据完成
    void importDataDone(QList<QList<QVariant>> data);

public slots:

private:
    QString fileName;
    QScopedPointer<ExcelBase> m_xls;
};

#endif // EXCELIMPORTTHREAD_H
